package fuction;

import java.util.function.Supplier;

/**
 * Supplier 供给型
 * 没有输入 只有输出
 */
public class testDemo4 {
    public static void main(String[] args) {
        Supplier<String> stringSupplier = new Supplier<>() {
            @Override
            public String get() {

                return "傻逼...";
            }
        };
        System.out.println(stringSupplier.get());
    }
}
